import {createRouter,createWebHistory} from 'vue-router'

import hello from'@/views/hello.vue'
import demo from'@/views/demo.vue'

const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes:[
        {
            path:'/demo',
            name:'demo',
            component:demo
        },
        {
            path:'/hello',
            name:'hello',
            component:hello
        }
    ],
})

export default router